package com.gemo.demo.mapper;

import com.gemo.demo.entiy.Admin;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface AdminMapper {
    //根据获取的admin是否存在
    @Select("select * from admin where username=#{username} and password=#{password}")
    Admin selectByUsername(Admin admin);
}
